package com.hnkywl.sts.action.report;

import com.hnkywl.sts.service.report.XshtlyzkService;
import net.ruixin.web.struts2.SimpleActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 销售合同履约状况
 * Created by ccr on 2014/6/24.
 */
@Namespace("/report/xshtlyzk")
public class XshtlyzkAction extends SimpleActionSupport{
    private XshtlyzkService xshtlyzkService;
    private String cght;
    private String xsht;
    private String wzbm;
    private String xsdh;
    private Long khId;
    private Long htId;
    private int page;
    private int rows;

    @Action("xshtList")
    public void xshtList(){
        renderJson(xshtlyzkService.xshtList(cght,xsht,xsdh,wzbm,khId,page,rows));
    }

    @Action("xshtlyzk_detail")
    public String xshtlyzk_detail(){
        return SUCCESS;
    }

    @Action("xshtlyzk_detail_list")
    public void xshtlyzkDetailList(){
        renderJson(xshtlyzkService.xshtlyzkDetailList(htId));
    }

    public String getCght() {
        return cght;
    }

    public void setCght(String cght) {
        this.cght = cght;
    }

    public String getXsht() {
        return xsht;
    }

    public void setXsht(String xsht) {
        this.xsht = xsht;
    }

    public String getXsdh() {
        return xsdh;
    }

    public void setXsdh(String xsdh) {
        this.xsdh = xsdh;
    }

    public String getWzbm() {
        return wzbm;
    }

    public void setWzbm(String wzbm) {
        this.wzbm = wzbm;
    }

    public Long getKhId() {
        return khId;
    }

    public void setKhId(Long khId) {
        this.khId = khId;
    }

    public Long getHtId() {
        return htId;
    }

    public void setHtId(Long htId) {
        this.htId = htId;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    @Autowired
    public void setXshtlyzkService(XshtlyzkService xshtlyzkService) {
        this.xshtlyzkService = xshtlyzkService;
    }
}
